package com.tourism.home.entity;

/**
 * @author lin
 * at 2018/3/24 6:50
 * 权限
 */
public class Menu {
    //主键
    private int id;
    //菜单编号
    private String code;
    //父菜单编号
    private String pcode;
    //父菜单编号集
    private String pcodes;
    //名称
    private String name;
    //图标
    private String icon;
    //url
    private String url;
    //功能链接
    private String func;

    //排序
    private int num;
    //菜单层级
    private int levels;
    //是否是菜单 1:yes 0:no
    private int ismenu;
    //菜单状态 1:启用 0:不启用
    private int status;
    //是否可打开 1:打开  0:不打开
    private int isopen;

    public Menu() {
    }

    public Menu(String code, String pcode, String pcodes, String name, String icon, String url, String func, int num, int levels, int ismenu, int status, int isopen) {
        this.code = code;
        this.pcode = pcode;
        this.pcodes = pcodes;
        this.name = name;
        this.icon = icon;
        this.url = url;
        this.func = func;
        this.num = num;
        this.levels = levels;
        this.ismenu = ismenu;
        this.status = status;
        this.isopen = isopen;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public String getPcodes() {
        return pcodes;
    }

    public void setPcodes(String pcodes) {
        this.pcodes = pcodes;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }


    public void setUrl(String url) {
        this.url = url;
    }

    public String getFunc() {
        return func;
    }

    public void setFunc(String func) {
        this.func = func;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getLevels() {
        return levels;
    }

    public void setLevels(int levels) {
        this.levels = levels;
    }

    public int getIsmenu() {
        return ismenu;
    }

    public void setIsmenu(int ismenu) {
        this.ismenu = ismenu;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getIsopen() {
        return isopen;
    }

    public void setIsopen(int isopen) {
        this.isopen = isopen;
    }
}
